package com.ddtech.framework.system.service.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;

/**
 * @author Apache License
 * @date 2018-11-23
 */
@Data
public class UserDTO implements Serializable {

    @ApiModelProperty(hidden = true)
    private String id;

    private String username;

    @JsonIgnore
    private String avatar;

    private String name;

    @JsonIgnore
    private String email;

    private String phone;

    private Boolean enabled;

    //@JsonIgnore
    private String password;

    private Timestamp createTime;

    private Date lastPasswordResetTime;

    @ApiModelProperty(hidden = true)
    private Set<RoleSmallDTO> roles;

    @JsonIgnore
    @ApiModelProperty(hidden = true)
    private JobSmallDTO job;


    private DeptSmallDTO dept;

    @JsonIgnore
    private String deptId;

    private String position;

    private String userNumber;

    private String deptName;

    private String personSignature;

    private String sex;

    private Integer age;

    private String achievement;

    private Integer userLevel;

    private Integer totalExperienceValue;

}
